namespace CSharpPro._1021;

public class Student
{
    public string Name { get; set; }
    public int Age { get; set; }
    public string School { get; set; }

    public Student(string name, int age, string school)
    {
        Name = name;
        Age = age;
        School = school;
    }
    public virtual void Study()
    {
        Console.WriteLine($"{Name}在{School}学习");
    }

    public override string ToString()
    {
        return $"姓名：{Name}，年龄：{Age}，学校：{School}";
    }
}